﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Marvin.Data.Linq2Sql;

namespace Marvin.Data.Entities
{
    public class ProjectCode : EntityBase
    {
        #region Encapsulate data entity
        protected TProjectCode projectCode;
        protected override IDataEntity DataEntity
        {
            get { return projectCode as IDataEntity; }
            set { projectCode = value as TProjectCode; }
        }
        #endregion

        #region Properties
        public override int Id
        {
            get
            {
                return projectCode.IProjectCodeId;
            }
            set
            {
                projectCode.IProjectCodeId = value;
            }
        }

        public int ProjectId
        {
            get
            {
                return projectCode.IProjectId;
            }
            set
            {
                projectCode.IProjectCodeId = value;
            }
        }

        public string Code
        {
            get
            {
                return projectCode.SCode;
            }
            set
            {
                projectCode.SCode = value;
            }
        }

        #endregion
    }
}
